<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    for (var a = 1; a < 10; a++) {
        for (b = 1; b <= a; b++) {
            console.log(a, b)
            document.write(a * b + '=' + a + '*' + b + " ")
        }
        document.write("<br/>");
    }
</script>
</body>
</html>